package grpc

import (
	user "gitlab.local/backend/proto/auth"
	"gitlab.local/backend/proto/manager"
	"gitlab.local/backend/proto/shadow"
	"gitlab.local/backend/proto/signal"
	"ota/config"
)

// UserClient example client, in reality, you should replace it with your own grpc client
// var UserClient example.UserService
var (
	Cmd           signal.SignalService
	EBikeCmd      manager.EbkieService
	EBikeControls manager.ControlsService
	UCmd          user.UserService
	SCmd          shadow.ShadowService
)

func Init() func() {
	Cmd = signal.NewSignalService("signal-grpc", config.MicroService.Client())
	UCmd = user.NewUserService("auth-grpc", config.MicroService.Client())
	EBikeCmd = manager.NewEbkieService("manager-grpc", config.MicroService.Client())
	EBikeControls = manager.NewControlsService("manager-grpc", config.MicroService.Client())
	SCmd = shadow.NewShadowService("shadow-grpc", config.MicroService.Client())
	return func() {}
}
